//
//  NewsCell.m
//  B
//
//  Created by lanou on 16/5/7.
//  Copyright © 2016年 裴启航. All rights reserved.
//

#import "NewsCell.h"

@implementation NewsCell

-(void)setDataWithModel:(NewsModel *)model
{
    [self.showImageView sd_setImageWithURL:[NSURL URLWithString:model.picUrl]];
    self.titleLabel.text = model.title;
    self.timeLabel.text = [model.ctime substringToIndex:10];
    self.fromWhereLabel.text = [NSString stringWithFormat:@"来自:%@", model.fromWhere];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
